]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-app-system: Ensure that we correctly order subsearches
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 16 Feb 2013 04:17:44 +0000 (23:17 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 16 Feb 2013 18:33:45 +0000 (13:33 -0500)
As we use g_slist_prepend for efficiency when building the list
of results before ordering it, we need to make sure we traverse
the list of previous results backwards so that it's built in
the same order.

https://bugzilla.gnome.org/show_bug.cgi?id=693936

src/shell-app-system.c

index 61e86f53a0e116f78617f0274816208110064cca..66f94f80899594563fab99cbffc082b97d0b725b 100644 (file)
@@ -780,6 +780,8 @@ shell_app_system_subsearch (ShellAppSystem   *system,
   GSList *substring_results = NULL;
   GSList *normalized_terms = normalize_terms (terms);
 
+  previous_results = g_slist_reverse (previous_results);
+
   for (iter = previous_results; iter; iter = iter->next)
     {
       ShellApp *app = iter->data;